import { Application } from 'egg';

export default (app:Application) => {
  const { controller, router } = app;
  const apiV1Router = router.namespace('/api/v1');

  /**
     * 单文件上传
     */
  apiV1Router.post('/file/fileUpload', controller.file.fileUpload);


  /**
   * 阿里云oss上传文件
   */
  apiV1Router.post('/file/fileAlossUpload', controller.file.fileAlossUpload);

  /**
   * 获取文件
   */
  apiV1Router.get('/file/getFile/:id', controller.file.getFile);

};
